//调用Python
public List<String> runPython(String strTemp) {
    List<String> stringList = new ArrayList<>();
    //        String[] args = new String[]{"cmd","/k","start","python",pythonPath+"bert_lstm_ner.py"};
    try {
        FileOutputStream out=new FileOutputStream(new File(pythonPath+"NERdata/test.txt"));
        BufferedOutputStream Buffered = new BufferedOutputStream(out);
        for (int i = 0; i < strTemp.length(); i++) {
        String temp ="\n";
        if(strTemp.charAt(i)!=' '){
            temp=strTemp.charAt(i)+" O\n";
        }
        Buffered.write(temp.getBytes());
    }
    Buffered.write("\n".getBytes());
    Buffered.flush();
    Buffered.close();
    File file=new File(pythonPath+"status.dat");
    FileWriter fileWriter =new FileWriter(file);
    fileWriter.write(48);
    fileWriter.flush();
    fileWriter.close();
    Runtime.getRuntime().exec("cmd /k start python C:\\Users\\Administrator\\Desktop\\BERT-BiLSTM-CRF-NER\\bert_lstm_ner.py");
    //            // 产生管道
    //            Process proc = Runtime.getRuntime().exec(args);
    //            // 必须写在 waitFor 之前）
    //            System.out.println(1);
    //            BufferedReader br = new BufferedReader(new InputStreamReader(proc.getInputStream()));
    //
    //            System.out.println(2);
    //            br.read();
    ////            String s;
    ////            while((s=br.read())!=null){
    ////                System.out.println(s);
    ////            }
    //            System.out.println(3);
    //            //等待执行完毕
    //            int retCode = proc.waitFor();
    //            System.out.println(4);
    //            if(retCode == 0){
    //                System.out.println("Python正常执行结束");
    //            }
    for(int i=0;i<300;i++){
    TimeUnit.SECONDS.sleep(1);
    InputStream input = new FileInputStream(file);
    int tempByte= input.read();
    if(tempByte != -1&&tempByte==49){
    System.out.println("Python正常执行结束");
    break;
    }
    input.close();
    }
    fileWriter =new FileWriter(file);
    fileWriter.write(48);
    fileWriter.flush();
    fileWriter.close();

    FileReader fileReader = new FileReader(pythonPath+"output/label_test.txt");
    BufferedReader br = new BufferedReader(fileReader);
    stringList=productHTML(br);
    } catch (IOException | InterruptedException e) {
    e.printStackTrace();
    }
    return stringList;
}
public static void main(String[] args) {
    public
}